﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HighLowTriple7;
using Library;
using Utils;

/// <summary>
/// Summary description for AccountSession
/// </summary>
public class AccountSession
{
	public AccountSession()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public static void Login(int id, string name, string fullName, int type)
    {
        UserUtils.AccountId = id;
        UserUtils.UserName = name;
        UserUtils.FullName = fullName;
        UserUtils.TypeAccount = type;
        UserUtils.IpAddress = Lib.GetAddressIp();        
    }
    public static void Logout()
    {
        UserUtils.AccountId = -1;
        UserUtils.UserName = string.Empty;
        UserUtils.FullName = string.Empty;
        UserUtils.TypeAccount = -1;
        UserUtils.Triple7AccessToken = string.Empty;
    }
}